package com.gdwhomework.chapter09.work01;

import com.sun.org.apache.regexp.internal.RE;

/**
 * @author 关道伟
 * @version 1.0
 */
public enum Color implements A{
    RED(255,0,0),BLUE(0,0,255),
    BLACK(0,0,0),YELLOW(255,255,0),
    GREEN(0,255,0);
    private int redValue;
    private int greenValue;
    private int blueValue;

    Color(int redValue, int greenValue, int blueValue) {
        this.redValue = redValue;
        this.greenValue = greenValue;
        this.blueValue = blueValue;
    }

    @Override
    public void show() {
        System.out.print(redValue+",");
        System.out.print(greenValue+",");
        System.out.println(blueValue);
    }
}
